package cn.lg.soar.system.monitor.entity;

import cn.lg.soar.database.base.entity.ITenantEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "日志配置", description = "日志配置")
@TableName("lg_sys_log_config")
public class LogConfig implements ITenantEntity, Serializable {

    private static final long serialVersionUID = 8872546610525568181L;
    @TableId
    private Long id;

    @ApiModelProperty("操作")
    private String operation;

    @ApiModelProperty("路径")
    private String path;

    @ApiModelProperty("详情模板")
    private String template;

    @ApiModelProperty("模式(参考枚举：LogConfigModeEnum)")
    private Integer mode;

    private Boolean disabled;

    @Version
    private Integer version;

    @ApiModelProperty(value = "租户id")
    @JsonIgnore
    @TableField(select = false)
    private Integer tenantId;
}
